namespace QMVnSoft.ReportForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormVCT00XViewer : FormReportViewer
    {
        private IContainer components;
        private object ii_TTien_Nt1 = DBNull.Value;
        private object ii_TTien_Nt2 = DBNull.Value;
        private object is_Desc_EN = DBNull.Value;
        private object is_Dien_Giai = DBNull.Value;
        private object is_Ma_Bp = DBNull.Value;
        private object is_Ma_Ct_List = DBNull.Value;
        private object is_Ma_Hd = DBNull.Value;
        private object is_Ma_Km = DBNull.Value;
        private object is_Ma_Nx = DBNull.Value;
        private object is_Ma_Sp = DBNull.Value;
        private object is_Ong_Ba = DBNull.Value;
        private object is_So_Ct1 = DBNull.Value;
        private object is_So_Ct2 = DBNull.Value;
        private object is_Ten_Bp = DBNull.Value;
        private object is_Ten_Hd = DBNull.Value;
        private object is_Ten_Km = DBNull.Value;
        private object is_Ten_Nx = DBNull.Value;
        private object is_Ten_Sp = DBNull.Value;
        private object is_Ten_Tk_Co = DBNull.Value;
        private object is_Ten_Tk_No = DBNull.Value;
        private object is_Tk_Co = DBNull.Value;
        private object is_Tk_No = DBNull.Value;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Kho;
        private LabelControl lblMa_Nh_Vt;
        private LabelControl lblMa_Vt;
        private LabelControl lblNgay_Ct1;
        private LabelControl lblNgay_Ct2;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Kho;
        private TextSearch txtMa_Nh_Vt;
        private TextSearch txtMa_Vt;
        private TextDate txtNgay_Ct1;
        private TextDate txtNgay_Ct2;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Kho;
        private TextControl txtTen_Nh_Vt;
        private TextControl txtTen_Vt;

        public FormVCT00XViewer()
        {
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = AppInstance.StartWorkingDate;
            this.txtNgay_Ct2.Value = AppInstance.EndWorkingDate;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(FormVCT00NViewer));
            this.txtTen_Nh_Vt = new TextControl();
            this.txtMa_Nh_Vt = new TextSearch();
            this.lblMa_Nh_Vt = new LabelControl();
            this.txtNgay_Ct2 = new TextDate();
            this.lblNgay_Ct2 = new LabelControl();
            this.txtNgay_Ct1 = new TextDate();
            this.lblNgay_Ct1 = new LabelControl();
            this.txtTen_Dt = new TextControl();
            this.txtMa_Dt = new TextSearch();
            this.lblMa_Dt = new LabelControl();
            this.txtTen_Kho = new TextControl();
            this.txtMa_Kho = new TextSearch();
            this.lblMa_Kho = new LabelControl();
            this.lblMa_Vt = new LabelControl();
            this.txtMa_Vt = new TextSearch();
            this.txtTen_Vt = new TextControl();
            base.rptContainer.Panel1.SuspendLayout();
            base.rptContainer.SuspendLayout();
            base.SuspendLayout();
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Kho);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Kho);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Kho);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Dt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct2);
            base.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct2);
            base.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct1);
            base.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct1);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Nh_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Vt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Nh_Vt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Nh_Vt);
            base.rptContainer.SplitterDistance = 0x6d;
            base.rptContainer.TabIndex = 0;
            this.txtTen_Nh_Vt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Nh_Vt.BackColor = SystemColors.Control;
            this.txtTen_Nh_Vt.BorderStyle = BorderStyle.None;
            this.txtTen_Nh_Vt.CheckTextSearched = false;
            this.txtTen_Nh_Vt.DisabledForeColor = Color.Blue;
            this.txtTen_Nh_Vt.Enabled = false;
            this.txtTen_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.txtTen_Nh_Vt.ForeColor = Color.Blue;
            this.txtTen_Nh_Vt.Location = new Point(0xd6, 0x30);
            this.txtTen_Nh_Vt.Name = "txtTen_Nh_Vt";
            this.txtTen_Nh_Vt.OldValue = null;
            this.txtTen_Nh_Vt.Size = new Size(0x1ca, 13);
            this.txtTen_Nh_Vt.TabIndex = 7;
//            this.txtTen_Nh_Vt.Value = null;//manager.GetObject("txtTen_Nh_Vt.Value");
            this.txtMa_Nh_Vt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Nh_Vt.CheckTextSearched = false;
            this.txtMa_Nh_Vt.DisabledForeColor = Color.Empty;
            this.txtMa_Nh_Vt.EmptyIsValid = true;
            this.txtMa_Nh_Vt.FieldDisplay = "Ten_Nh_Vt";
            this.txtMa_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.txtMa_Nh_Vt.FoundIsValid = true;
            this.txtMa_Nh_Vt.Location = new Point(0x6c, 0x2d);
            this.txtMa_Nh_Vt.MaxLength = 0x20;
            this.txtMa_Nh_Vt.Name = "txtMa_Nh_Vt";
            this.txtMa_Nh_Vt.OldValue = null;
            this.txtMa_Nh_Vt.Size = new Size(100, 20);
            this.txtMa_Nh_Vt.TabIndex = 3;
            this.txtMa_Nh_Vt.TableName = "DMNHVT";
            this.txtMa_Nh_Vt.TextDisplay = this.txtTen_Nh_Vt;
            this.txtMa_Nh_Vt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Vt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Nh_Vt.Value = null;//manager.GetObject("txtMa_Nh_Vt.Value");
            this.lblMa_Nh_Vt.AutoSize = true;
            this.lblMa_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.lblMa_Nh_Vt.Location = new Point(12, 0x30);
            this.lblMa_Nh_Vt.Name = "lblMa_Nh_Vt";
            this.lblMa_Nh_Vt.Size = new Size(0x41, 14);
            this.lblMa_Nh_Vt.TabIndex = 0x57;
            this.lblMa_Nh_Vt.Text = "Nhóm vật tư";
            this.txtNgay_Ct2.DateTimeFormat = TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct2.Font = new Font("Arial", 8.25f);
            this.txtNgay_Ct2.InsertKeyMode = InsertKeyMode.Overwrite;
            this.txtNgay_Ct2.Location = new Point(0x13c, 3);
            this.txtNgay_Ct2.Mask = "00/00/0000";
            this.txtNgay_Ct2.Name = "txtNgay_Ct2";
            this.txtNgay_Ct2.OldValue = null;
            this.txtNgay_Ct2.Size = new Size(100, 20);
            this.txtNgay_Ct2.TabIndex = 1;
//            this.txtNgay_Ct2.Value = null;//manager.GetObject("txtNgay_Ct2.Value");
            this.lblNgay_Ct2.AutoSize = true;
            this.lblNgay_Ct2.Font = new Font("Arial", 8.25f);
            this.lblNgay_Ct2.Location = new Point(0x100, 6);
            this.lblNgay_Ct2.Name = "lblNgay_Ct2";
            this.lblNgay_Ct2.Size = new Size(0x36, 14);
            this.lblNgay_Ct2.TabIndex = 0x61;
            this.lblNgay_Ct2.Text = "Đến ngày";
            this.txtNgay_Ct1.DateTimeFormat = TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct1.Font = new Font("Arial", 8.25f);
            this.txtNgay_Ct1.InsertKeyMode = InsertKeyMode.Overwrite;
            this.txtNgay_Ct1.Location = new Point(0x6c, 3);
            this.txtNgay_Ct1.Mask = "00/00/0000";
            this.txtNgay_Ct1.Name = "txtNgay_Ct1";
            this.txtNgay_Ct1.OldValue = null;
            this.txtNgay_Ct1.Size = new Size(100, 20);
            this.txtNgay_Ct1.TabIndex = 0;
//            this.txtNgay_Ct1.Value = null;//manager.GetObject("txtNgay_Ct1.Value");
            this.lblNgay_Ct1.AutoSize = true;
            this.lblNgay_Ct1.Font = new Font("Arial", 8.25f);
            this.lblNgay_Ct1.Location = new Point(12, 6);
            this.lblNgay_Ct1.Name = "lblNgay_Ct1";
            this.lblNgay_Ct1.Size = new Size(0x2f, 14);
            this.lblNgay_Ct1.TabIndex = 0x62;
            this.lblNgay_Ct1.Text = "Từ ngày";
            this.txtTen_Dt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Dt.BackColor = SystemColors.Control;
            this.txtTen_Dt.BorderStyle = BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new Font("Arial", 8.25f);
            this.txtTen_Dt.ForeColor = Color.Blue;
            this.txtTen_Dt.Location = new Point(0xd6, 90);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new Size(0x1ca, 13);
            this.txtTen_Dt.TabIndex = 5;
//            this.txtTen_Dt.Value = null;//manager.GetObject("txtTen_Dt.Value");
            this.txtMa_Dt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new Font("Arial", 8.25f);
            this.txtMa_Dt.FoundIsValid = true;
            this.txtMa_Dt.Location = new Point(0x6c, 0x57);
            this.txtMa_Dt.MaxLength = 0x20;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new Size(100, 20);
            this.txtMa_Dt.TabIndex = 5;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Dt.Value = null;//manager.GetObject("txtMa_Dt.Value");
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new Font("Arial", 8.25f);
            this.lblMa_Dt.Location = new Point(12, 90);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new Size(70, 14);
            this.lblMa_Dt.TabIndex = 0x69;
            this.lblMa_Dt.Text = "Mã đối tượng";
            this.txtTen_Kho.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Kho.BackColor = SystemColors.Control;
            this.txtTen_Kho.BorderStyle = BorderStyle.None;
            this.txtTen_Kho.CheckTextSearched = false;
            this.txtTen_Kho.DisabledForeColor = Color.Blue;
            this.txtTen_Kho.Enabled = false;
            this.txtTen_Kho.Font = new Font("Arial", 8.25f);
            this.txtTen_Kho.ForeColor = Color.Blue;
            this.txtTen_Kho.Location = new Point(0xd6, 0x1b);
            this.txtTen_Kho.Name = "txtTen_Kho";
            this.txtTen_Kho.OldValue = null;
            this.txtTen_Kho.Size = new Size(0x1ca, 13);
            this.txtTen_Kho.TabIndex = 9;
//            this.txtTen_Kho.Value = null;//manager.GetObject("txtTen_Kho.Value");
            this.txtMa_Kho.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Kho.CheckTextSearched = false;
            this.txtMa_Kho.DisabledForeColor = Color.Empty;
            this.txtMa_Kho.EmptyIsValid = true;
            this.txtMa_Kho.FieldDisplay = "Ten_Kho";
            this.txtMa_Kho.Font = new Font("Arial", 8.25f);
            this.txtMa_Kho.FoundIsValid = true;
            this.txtMa_Kho.Location = new Point(0x6c, 0x18);
            this.txtMa_Kho.MaxLength = 0x20;
            this.txtMa_Kho.Name = "txtMa_Kho";
            this.txtMa_Kho.OldValue = null;
            this.txtMa_Kho.Size = new Size(100, 20);
            this.txtMa_Kho.TabIndex = 2;
            this.txtMa_Kho.TableName = "DMKHO";
            this.txtMa_Kho.TextDisplay = this.txtTen_Kho;
            this.txtMa_Kho.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Kho.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Kho.Value = null;//manager.GetObject("txtMa_Kho.Value");
            this.lblMa_Kho.AutoSize = true;
            this.lblMa_Kho.Font = new Font("Arial", 8.25f);
            this.lblMa_Kho.Location = new Point(12, 0x1b);
            this.lblMa_Kho.Name = "lblMa_Kho";
            this.lblMa_Kho.Size = new Size(0x29, 14);
            this.lblMa_Kho.TabIndex = 0x6c;
            this.lblMa_Kho.Text = "Mã kho";
            this.lblMa_Vt.AutoSize = true;
            this.lblMa_Vt.Font = new Font("Arial", 8.25f);
            this.lblMa_Vt.Location = new Point(12, 0x45);
            this.lblMa_Vt.Name = "lblMa_Vt";
            this.lblMa_Vt.Size = new Size(0x34, 14);
            this.lblMa_Vt.TabIndex = 0x57;
            this.lblMa_Vt.Text = "Mã vật tư";
            this.txtMa_Vt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Vt.CheckTextSearched = false;
            this.txtMa_Vt.DisabledForeColor = Color.Empty;
            this.txtMa_Vt.EmptyIsValid = true;
            this.txtMa_Vt.FieldDisplay = "Ten_Vt";
            this.txtMa_Vt.Font = new Font("Arial", 8.25f);
            this.txtMa_Vt.FoundIsValid = true;
            this.txtMa_Vt.Location = new Point(0x6c, 0x42);
            this.txtMa_Vt.MaxLength = 0x20;
            this.txtMa_Vt.Name = "txtMa_Vt";
            this.txtMa_Vt.OldValue = null;
            this.txtMa_Vt.Size = new Size(100, 20);
            this.txtMa_Vt.TabIndex = 4;
            this.txtMa_Vt.TableName = "DMVT";
            this.txtMa_Vt.TextDisplay = this.txtTen_Vt;
            this.txtMa_Vt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Vt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Vt.Value = null;//manager.GetObject("txtMa_Vt.Value");
            this.txtTen_Vt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Vt.BackColor = SystemColors.Control;
            this.txtTen_Vt.BorderStyle = BorderStyle.None;
            this.txtTen_Vt.CheckTextSearched = false;
            this.txtTen_Vt.DisabledForeColor = Color.Blue;
            this.txtTen_Vt.Enabled = false;
            this.txtTen_Vt.Font = new Font("Arial", 8.25f);
            this.txtTen_Vt.ForeColor = Color.Blue;
            this.txtTen_Vt.Location = new Point(0xd6, 0x45);
            this.txtTen_Vt.Name = "txtTen_Vt";
            this.txtTen_Vt.OldValue = null;
            this.txtTen_Vt.Size = new Size(0x1ca, 13);
            this.txtTen_Vt.TabIndex = 7;
//            this.txtTen_Vt.Value = null;//manager.GetObject("txtTen_Vt.Value");
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.CheckDetailMost = true;
            base.ClientSize = new Size(0x31a, 0x1cf);
            base.Name = "FormVCT00NViewer";
            base.rptContainer.Panel1.ResumeLayout(false);
            base.rptContainer.Panel1.PerformLayout();
            base.rptContainer.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        protected override void OnExpression()
        {
            base.OnExpression();
            FormVCT00XExpress express = new FormVCT00XExpress();
            express.Ma_Ct_List = this.is_Ma_Ct_List;
            express.So_Ct1 = this.is_So_Ct1;
            express.So_Ct2 = this.is_So_Ct2;
            express.TTien_Nt1 = this.ii_TTien_Nt1;
            express.TTien_Nt2 = this.ii_TTien_Nt2;
            express.Ma_Bp = this.is_Ma_Bp;
            express.Ten_Bp = this.is_Ten_Bp;
            express.Ma_Hd = this.is_Ma_Hd;
            express.Ten_Hd = this.is_Ten_Hd;
            express.Ma_Sp = this.is_Ma_Sp;
            express.Ten_Sp = this.is_Ten_Sp;
            express.Ma_Km = this.is_Ma_Km;
            express.Ten_Km = this.is_Ten_Km;
            express.Ma_Nx = this.is_Ma_Nx;
            express.Ten_Nx = this.is_Ten_Nx;
            express.Tk_No = this.is_Tk_No;
            express.Ten_Tk_No = this.is_Ten_Tk_No;
            express.Tk_Co = this.is_Tk_Co;
            express.Ten_Tk_Co = this.is_Ten_Tk_Co;
            express.Dien_Giai = this.is_Dien_Giai;
            express.Desc_EN = this.is_Desc_EN;
            express.Ong_Ba = this.is_Ong_Ba;
            express.ShowDialog();
            this.is_Ma_Ct_List = express.Ma_Ct_List;
            this.is_So_Ct1 = express.So_Ct1;
            this.is_So_Ct2 = express.So_Ct2;
            this.ii_TTien_Nt1 = express.TTien_Nt1;
            this.ii_TTien_Nt2 = express.TTien_Nt2;
            this.is_Ma_Bp = express.Ma_Bp;
            this.is_Ten_Bp = express.Ten_Bp;
            this.is_Ma_Hd = express.Ma_Hd;
            this.is_Ten_Hd = express.Ten_Hd;
            this.is_Ma_Sp = express.Ma_Sp;
            this.is_Ten_Sp = express.Ten_Sp;
            this.is_Ma_Km = express.Ma_Km;
            this.is_Ten_Km = express.Ten_Km;
            this.is_Ma_Nx = express.Ma_Nx;
            this.is_Ten_Nx = express.Ten_Nx;
            this.is_Tk_No = express.Tk_No;
            this.is_Ten_Tk_No = express.Ten_Tk_No;
            this.is_Tk_Co = express.Tk_Co;
            this.is_Ten_Tk_Co = express.Ten_Tk_Co;
            this.is_Dien_Giai = express.Dien_Giai;
            this.is_Desc_EN = express.Desc_EN;
            this.is_Ong_Ba = express.Ong_Ba;
        }

        protected override void OnGenerateColumns()
        {
            object[][] objArray = new object[9][];
            object[] objArray2 = new object[4];
            objArray2[0] = "Ma_Ct";
            objArray2[1] = "Mã chứng từ";
            objArray2[2] = "C";
            objArray[0] = objArray2;
            object[] objArray3 = new object[4];
            objArray3[0] = "Ngay_Ct";
            objArray3[1] = "Ngày chứng từ";
            objArray3[2] = "D";
            objArray[1] = objArray3;
            object[] objArray4 = new object[4];
            objArray4[0] = "So_Ct";
            objArray4[1] = "Số chứng từ";
            objArray4[2] = "C";
            objArray[2] = objArray4;
            object[] objArray5 = new object[4];
            objArray5[0] = "Dien_Giai";
            objArray5[1] = "Diễn giải";
            objArray5[2] = "C";
            objArray[3] = objArray5;
            object[] objArray6 = new object[4];
            objArray6[0] = "Ma_Kho";
            objArray6[1] = "Kho";
            objArray6[2] = "C";
            objArray[4] = objArray6;
            object[] objArray7 = new object[4];
            objArray7[0] = "Ma_Vt";
            objArray7[1] = "Vật tư";
            objArray7[2] = "C";
            objArray[5] = objArray7;
            objArray[6] = new object[] { "So_Luong", "Số lượng", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[7] = new object[] { "Gia", "Đơn giá", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[8] = new object[] { "Tien", "Tiền hàng", "N", AppInstance.TextNumericFormat.LocalAmount };
            base.LocalColNames = objArray;
            base.OnGenerateColumns();
        }

        protected override void OnMakeReport()
        {
            AppInstance.StartWorkingDate = (DateTime) this.txtNgay_Ct1.Value;
            AppInstance.EndWorkingDate = (DateTime) this.txtNgay_Ct2.Value;
            base.LocalTable = new ReportDataAccess().VCT00X_Get(AppInstance.Subsidiaries, this.is_Ma_Ct_List, this.txtNgay_Ct1.Value, this.txtNgay_Ct2.Value, this.is_So_Ct1, this.is_So_Ct2, this.ii_TTien_Nt1, this.ii_TTien_Nt2, this.txtMa_Dt.Value, this.is_Dien_Giai, this.is_Desc_EN, this.txtMa_Nh_Vt.Value, this.txtMa_Kho.Value, this.txtMa_Vt.Value, this.is_Ma_Bp, this.is_Ma_Sp, this.is_Ma_Hd, this.is_Ma_Km, this.is_Ma_Nx, this.is_Tk_No, this.is_Tk_Co, this.is_Ong_Ba, AppInstance.DefLanguage);
            base.OnMakeReport();
        }

        protected override void OnSendParameters()
        {
            base.StimulReport["Ngay"] = "Từ ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct1.Value) + " đến ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct2.Value);
            if (string.IsNullOrEmpty(this.txtMa_Kho.Value.ToString()))
            {
                base.StimulReport["Kho"] = "";
            }
            else
            {
                base.StimulReport["Kho"] = string.Concat(new object[] { "Kho: ", this.txtTen_Kho.Value, " (", this.txtMa_Kho.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Nh_Vt.Value.ToString()))
            {
                base.StimulReport["NhomVatTu"] = "";
            }
            else
            {
                base.StimulReport["NhomVatTu"] = string.Concat(new object[] { "Nhóm vật tư: ", this.txtTen_Nh_Vt.Value, " (", this.txtMa_Nh_Vt.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Dt.Value.ToString()))
            {
                base.StimulReport["DoiTuong"] = "";
            }
            else
            {
                base.StimulReport["DoiTuong"] = string.Concat(new object[] { "Đối tượng: ", this.txtTen_Dt.Value, " (", this.txtMa_Dt.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Vt.Value.ToString()))
            {
                base.StimulReport["VatTu"] = "";
            }
            else
            {
                base.StimulReport["VatTu"] = string.Concat(new object[] { "Vật tư: ", this.txtTen_Vt.Value, " (", this.txtMa_Vt.Value, ")" });
            }
        }
    }
}

